package com.hyxf;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 阿紫
 * @version 1.0.0
 * @project sync-multiple-datasource
 * @description 系统启动类
 * @date 2024/11/08 14:35:17
 */
@EnableScheduling
@SpringBootApplication(scanBasePackages = {"com.hyxf"})
@ComponentScan(basePackages = {"com.hyxf"})
@MapperScan(basePackages = {"com.hyxf.dao.cluster","com.hyxf.dao.master"})
@Slf4j
public class SyncDataSourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(SyncDataSourceApplication.class, args);
        log.info("=================================");
        log.info("=============== SyncDataSource 启动完成 ==================");
        log.info("=================================");
    }
}
